#ifndef SCAN_H
#define SCAN_H

#include <QJsonObject>
#include <QJsonDocument>
#include <QDebug>

#include "BaseData.h"
#include"NetAction.h"

using std::string;

class Scan : public BaseData
{
public:
    INT32 protocolType;
    QString hostName;
    QString ip;
    QString terminalType;


    Scan();
    virtual ~Scan(){};
    static Scan fromVariantMap(const QVariantMap & map);
    string getTerminalType();
    static QByteArray enCodeToJson(Scan *scan) ;
    static Scan deCodeFromJson(QByteArray jsonData);

};

#endif // SCAN_H
